#import <Foundation/Foundation.h>

#import "View.h"
#import "FirstView.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        DVIRect rect = {{50, 50}, {100, 200}};
        FirstView *v = [FirstView viewWithFrame:rect];
        if ([v isKindOfClass:[FirstView class]]) {
            NSLog(@"v is a FirstView object");
        }
        
        NSLog(@"center: %@", NSStringFromDVIPoint(v.center));
        NSLog(@"bounds: %@", NSStringFromDVIRect(v.bounds));
        NSLog(@"frame: %@", NSStringFromDVIRect(v.frame));
        
//        DVIPoint point = {500, 600};
//        v.center = point;//setCenter:
        v.bounds = DVIRectMake(0, 0, 200, 200);
        
        NSLog(@"center: %@", NSStringFromDVIPoint(v.center));
        NSLog(@"bounds: %@", NSStringFromDVIRect(v.bounds));
        NSLog(@"frame: %@", NSStringFromDVIRect(v.frame));
        
        [v release];
    }
    return 0;
}
